<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<link href="css/mui.min.css" rel="stylesheet" />

		<style>
			ul {
				font-size: 14px;
				color: #8f8f94;
			}
			.mui-btn {
				padding: 10px;
			}
		</style>
	</head>

	<body>
		<div class="mui-content">
			<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">主页</h1>
			</header>
			<div class="mui-content" style="text-align: center;margin-top: 20px;">
				<img width="100px" src="images/user-photo.png" height="100px"/>
				<h3>您好</h1>
			</div>
			<div style="text-align:center;padding-top: 20px;">
				<a id="userInfo" href="" style="font-size:20px;">查看个人信息</a>
			</div>		
			<div style="text-align:center;padding-top: 20px;">
				<a id="modifyUser" href="" style="font-size:20px;">编辑个人信息</a>
			</div>	
			<div style="text-align:center;padding-top: 20px;">
				<a id="manager" href="" style="font-size:20px;">二维码管理</a>
			</div>	
			<div style="text-align: center;  position:absolute; bottom:0;width:100%; height: 30px;">
				<p>(c) Copyright 2018 maxun.xyz. All Rights Reserved.</p>
			</div>
		</div>
		<script src="../view/js/jquery-1.8.3.js"></script>
		<script src="../view/js/mui.min.js"></script>
		<script src="../view/js/app.js"></script>
		<script>
            //获取url中的参数
            function getUrlParam(name) {
                var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
                var r = window.location.search.substr(1).match(reg); //匹配目标参数
                if (r != null) return unescape(r[2]); return null; //返回参数值
            }
            $(function () {
                $("#userInfo").attr("href","userInfo.html?id="+getUrlParam("id"));
                $("#modifyUser").attr("href","modify.html?id="+getUrlParam("id"));
                $("#manager").attr("href","manage.html?id="+getUrlParam("id"));
            })
			(function($, doc) {
				$.init();
				var settings = app.getSettings();
				var account = doc.getElementById('account');
				//
				window.addEventListener('show', function() {
					var state = app.getState();
					account.innerText = state.account;
				}, false);
				$.plusReady(function() {
					var settingPage = $.preload({
						"id": 'setting',
						"url": 'setting.html'
					});
					//设置
					var settingButton = doc.getElementById('setting');
					//settingButton.style.display = settings.autoLogin ? 'block' : 'none';
					settingButton.addEventListener('tap', function(event) {
						$.openWindow({
							id: 'setting',
							show: {
								aniShow: 'pop-in'
							},
							styles: {
								popGesture: 'hide'
							},
							waiting: {
								autoShow: false
							}
						});
					});
					//--
					$.oldBack = mui.back;
					var backButtonPress = 0;
					$.back = function(event) {
						backButtonPress++;
						if (backButtonPress > 1) {
							plus.runtime.quit();
						} else {
							plus.nativeUI.toast('再按一次退出应用');
						}
						setTimeout(function() {
							backButtonPress = 0;
						}, 1000);
						return false;
					};
				});
			}(mui, document));
		</script>
		<script src="https://s13.cnzz.com/z_stat.php?id=1273362290&web_id=1273362290" language="JavaScript"></script>
	</body>

</html>